package cn.kgc.dao;

import cn.kgc.pojo.Standards;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StandardsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Standards record);

    int insertSelective(Standards record);

    Standards selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Standards record);

    int updateByPrimaryKey(Standards record);

    //分页展示
    List<Standards> getPeopleListLimit(@Param("zhname") String zhname,
                                       @Param("begin") int begin,
                                       @Param("pageSize") int pageSize);


    //获取总数量
    int totalCount(@Param("zhname") String zhname);

    //通过ID查询
    Standards getListById(@Param("id") Integer id);

    //增加数据
    int addInfo(Standards standards);

    //修改数据
    boolean update(Standards standards);

    //删除数据
    boolean delete(Integer id);
}